package com.hotel.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hotel.mapper.RoomTypeMapper;
import com.hotel.mapper.UserMapper;
import com.hotel.pojo.RoomType;
import com.hotel.pojo.User;
import com.hotel.service.RoomTypeService;
import com.hotel.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author shkstart
 * @create 2021-06-28 1:58
 */
@Service
public class RoomTypeServiceImpl extends ServiceImpl<RoomTypeMapper, RoomType> implements RoomTypeService {

    @Autowired
    RoomTypeMapper roomTypeMapper;

    @Override
    public List<RoomType> selectRoomType(String roomType) {
        return roomTypeMapper.selectRoomType(roomType);
    }

//    @Override
//    public List<RoomType> findAllUserByPageF(int pageNum, int pageSize) {
//        // TODO Auto-generated method stub
//        PageHelper.startPage(pageNum, pageSize);
//        List<RoomType> lists = roomTypeMapper.selectList(null);
//        return lists;
//    }
//
//    @Override
//    public PageInfo<RoomType> findAllUserByPageS(int pageNum, int pageSize) {
//        // TODO Auto-generated method stub
//        PageHelper.startPage(pageNum, pageSize);
//        List<RoomType> lists = roomTypeMapper.selectList(null);
//        PageInfo<RoomType> pageInfo = new PageInfo<RoomType>(lists);
//        return pageInfo;
//
//    }
//
//    @Override
//    public List<RoomType> selectRoomType(String roomType) {
//        return roomTypeMapper.selectRoomType(roomType);
//    }


}
